package com.huaxiafinance.management.mapper;

import com.huaxiafinance.management.dto.request.QueryPayOrderDto;
import com.huaxiafinance.management.model.MallPayOrder;

import java.util.List;

public interface MallPayOrderMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(MallPayOrder record);

    int insertSelective(MallPayOrder record);

    MallPayOrder selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(MallPayOrder record);

    int updateByPrimaryKey(MallPayOrder record);

    /**
     * 按条件查出支付订单列表
     * @param dto
     * @return
     */
    List<MallPayOrder> getPayOrderList(QueryPayOrderDto dto);
    /**
     * 按条件查出支付订单的记录数
     * @param dto
     * @return
     */
    Integer getPayOrderCount(QueryPayOrderDto dto);
}